import { connect } from 'dva';
import styles from './Charts.css';
import ChartsLine from './ChartsLine';

function Charts({ dispatch, list: dataSource, loading, total, testData, page: current }) {
  console.log(7, dataSource, total, current, testData);
  return (
    <div className={styles.normal}>
      <ChartsLine />
    </div>
  );
}

function mapStateToProps(state) {
  const {testData } = state.charts;
  return {
    testData
  };
}

export default connect(mapStateToProps)(Charts);
